package com.crpc.core.loadBalance;

import java.net.InetSocketAddress;
import java.util.List;

/**
 * @author wzy
 * @version 1.0
 * @description: 负载均衡器的接口
 * @date 2023/9/30 21:30
 */
public interface LoadBalance {
    //根据服务列表选出一个服务
    InetSocketAddress selectServiceAddress(String serviceName);

    void reLoadBalance(String serviceName, List<InetSocketAddress> inetSocketAddressList);
}
